//
//  CircleSegment.h
//  Project5
//
//  Created by Nguyen Tan Loc on 5/18/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "CCNode.h"
#import "Utility.h"


@interface CircleSegment : NSObject
{
    int     m_Type;
    int     m_Color;
    float   m_Rotation;
    BOOL    m_IsDestroy;
    CCSprite *m_Sprite;
}

@property (readonly) CCSprite *_sprite;
@property (readonly) BOOL _isDestroy;
@property (readonly) int  _color;

-(id) initWithType:(int)type color:(int)color rotation:(float)rotation;
-(void) setPosition:(CGPoint)p;
-(void) setRotation:(float)a;
-(void) setRadius:(float)r;
-(void) addSpriteToBatch:(CCSpriteBatchNode *)batch;
-(void) appearWithTime:(ccTime)t;
-(float) getMinAngle;
-(float) getMaxAngle;
-(int) getColor;
-(void) explodeWithDelay:(float)d;


@end
